/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import components.FileType;

/**
 * Soort van formuliertje om dingen op te slaan met commentaar ofzo.
 * @author Memet
 */
public class SaveFileView extends javax.swing.JFrame {

    /**
     * Creates new form adplView
     */
    public SaveFileView() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        aDPLViewPanel1 = new gui.panels.ADPLViewPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(aDPLViewPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(aDPLViewPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

  
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private gui.panels.ADPLViewPanel aDPLViewPanel1;
    // End of variables declaration//GEN-END:variables
    public void setText(String text)
    {
        aDPLViewPanel1.setText(text);
        aDPLViewPanel1.repaint();
    }

    public void setText(String text, String message)
    {
        aDPLViewPanel1.setMessage(message);
        setText(text);
    }

    public void setType(FileType type)
    {
        aDPLViewPanel1.setType(type);
    }
}
